package com.woniuxy.oldobject.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.oldobject.dao.NursingServerDao;
import com.woniuxy.oldobject.entity.NursingServer;
import com.woniuxy.oldobject.service.NursingServerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * @Author： 倪和楠
 * @Todo：
 * @Date： 2022/7/26 15:43
 * @Version： 1.0
 */
@Service
public class NursingServerServiceImpl extends ServiceImpl<NursingServerDao,NursingServer> implements NursingServerService {
    @Resource
    NursingServerDao nursingServerDao;
    @Override
    public List<NursingServer> allserver() {
        return nursingServerDao.listAllserver();
    }

    @Override
    public boolean newnurserver(NursingServer nursingServer) {
        return nursingServerDao.newserver(nursingServer);
    }

    @Override
    public boolean updateserver(NursingServer nursingServer) {
        if (nursingServer.getId() == null) {
            return nursingServerDao.newserver(nursingServer);
        } else {
            return nursingServerDao.updateserver(nursingServer);
        }
    }

    @Override
    public int deleteById(Integer id) {
        return nursingServerDao.deleteById(id);
    }

    @Override
    public int insertServerWithProjectId(List<NursingServer> list) {
        return nursingServerDao.insertServerWithProjectId(list);
    }

    @Override
    public List<NursingServer> queryAllByLimit(NursingServer nursingServer) {
        return nursingServerDao.queryAllByLimit(nursingServer);
    }

    @Override
    public boolean saveBatch(Collection<NursingServer> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<NursingServer> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<NursingServer> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(NursingServer entity) {
        return false;
    }

    @Override
    public NursingServer getOne(Wrapper<NursingServer> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<NursingServer> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<NursingServer> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }



    @Override
    public Class<NursingServer> getEntityClass() {
        return null;
    }
}
